Removes the specified routed event handler from this
System.Windows.UIElement.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub RemoveHandler( _
ByVal routedEvent As System.Windows.RoutedEvent, _
ByVal handler As System.Delegate _
) |
| C# | |
|---|
public void RemoveHandler(
System.Windows.RoutedEvent routedEvent,
System.Delegate handler
) |
Parameters
- routedEvent
- The identifier of the routed event for which the handler is attached.
- handler
- The specific handler implementation to remove from the event handler collection on this System.Windows.UIElement.
Exceptions
| Exception | Description |
| System.ArgumentNullException | routedEvent or% handler% is null. |
| System.ArgumentException | routedEvent does not represent a supported routed event.-or-handler does not implement a supported delegate. |
| System.NotImplementedException | Attempted to remove handler for an event not supported by the current platform variation. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also